﻿using Rsd.Dudu;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Rsd.Faith.Web
{
    public static class ExtendMethod
    {
        
         
        /// <summary>
        /// 
        /// </summary>
        /// <param name="code"></param>
        /// <param name="args"></param>
        internal static void SubmitError(this ErrorCodesType code, params String[] args)
        { 
            ServicesContainer.GetService<Rsd.Dudu.Exception.IExceptionService>(null).Submit(code,  Rsd.Dudu.Exception.OperationType.CommitAndError, args);
        }
    }
}